package com.wlz.behavioral.strategy.actual;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<String> addressList=new ArrayList<String>();
        addressList.add("192.168.1.1");
        addressList.add("192.168.1.2");
        addressList.add("192.168.1.3");
        addressList.add("192.168.1.4");
        addressList.add("192.168.1.5");

        ExecutorRouter route=ExecutorRouteStrategyEnum.match("RANDOM").getRouter();
        System.out.println(route.route(addressList));
    }
}
